class Http{
    static baseUrl = "http://47.108.197.28:3000";
    static request(url){
        console.log(this.baseUrl);
        return new Promise((resolve,reject)=>{
            $.ajax({
                url:this.baseUrl+url,
                success:res=>{
                    resolve(res)
                },
                error:err=>{
                    reject(err)
                }
            })
        })
    }
}
// 继承基类
class MusicHttp extends Http{
    static getHotMusicHttp(){
        return this.request("/top/playlist/highquallity")
    }
    static getNewMusicHttp(){
        return this.request("/album/newest")
    }
    static getDjMusicHttp(){
        return this.request("/personalized/djprogram")
    }
}